$PBExportHeader$socketraw.sru
$PBExportComments$Export By Shu<KenShu@163.net>
forward
global type socketraw from nonvisualobject
end type

end forward

global type socketraw from nonvisualobject

end type
global socketraw socketraw

type prototypes
Public Function integer wsbind (uint s,ulong ul_addr,integer iport,integer iproto) LIBRARY "sul3sock.dll"
Public Function integer wsclosesocket (uint s) LIBRARY "sul3sock.dll"
Public Function integer wsconnect (uint s,ulong ul_addr,integer iport) LIBRARY "sul3sock.dll"
Public Function integer wsrecv (uint s,blob buf,integer len,integer flags) LIBRARY "sul3sock.dll"
Public Function integer wslisten (uint s,integer backlog) LIBRARY "sul3sock.dll"
Public Function integer wssend (uint s,blob buf,integer len,integer flags) LIBRARY "sul3sock.dll"
Public Function uint wssocket (integer af,integer itype,integer protocol) LIBRARY "sul3sock.dll"
Public Function integer wsshutdown (uint s,integer how) LIBRARY "sul3sock.dll"
Public Function uint wsaccept (uint s,ulong uladdr,integer iport) LIBRARY "sul3sock.dll"
/*Warning: Unknow access: 51*/Function integer wsioctlsocket (uint s,long cmd,ulong argp) LIBRARY "sul3sock.dll"
Public Function integer wsrecvfrom (uint s,blob buf,integer len,integer flags,ulong uladdr,integer iport) LIBRARY "sul3sock.dll"
Public Function integer wssendto (uint s,blob buf,integer len,integer flags,ulong uladdr,integer iport) LIBRARY "sul3sock.dll"
Public Function integer wsgetsockopt (uint s,integer level,integer optname,integer optvalint,linger optvallinger) LIBRARY "sul3sock.dll"
Public Function integer wssetsockopt (uint s,integer level,integer optname,integer optvalint,linger optvallinger) LIBRARY "sul3sock.dll"
Public Function integer wsgetpeername (uint s,ulong uladdr,integer iport) LIBRARY "sul3sock.dll"
Public Function integer wsgetsockname (uint s,ulong uladdr,integer iport) LIBRARY "sul3sock.dll"
Public Function integer wsWSAAsyncSelect (uint s,uint hwnd,uint wmsg,long levent) LIBRARY "sul3sock.dll"

end prototypes

on socketraw.create
//create (none) returns (none)


THIS.triggerevent("constructor")

end on

on socketraw.destroy
//destroy (none) returns (none)


THIS.triggerevent("destructor")

end on

